package com.smartcampusbackend.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.smartcampusbackend.model.MakeupExamApplication;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import java.util.List;

@Mapper
public interface MakeupExamApplicationMapper extends BaseMapper<MakeupExamApplication> {
    
    @Select("SELECT * FROM makeup_exam_application WHERE student_id = #{studentId}")
    List<MakeupExamApplication> findByStudentId(String studentId);
    
    // 返回所有补考申请，不按教师ID过滤
    @Select("SELECT m.* FROM makeup_exam_application m")
    List<MakeupExamApplication> findByTeacherId(String teacherId);
} 